package com.lwj.config;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@ConfigurationProperties(prefix = "system.config") // 配置文件的前缀
public class ConfigProperties {
    private List<String> attachmentFormat;

    private String filePath;

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public List<String> getAttachmentFormat() {
        return attachmentFormat;
    }

    public void setAttachmentFormat(List<String> attachmentFormat) {
        this.attachmentFormat = attachmentFormat;
    }

    @Override
    public String toString() {
        return "ConfigProperties{" +
                "attachmentFormat=" + attachmentFormat +
                '}';
    }
}
